package com.permissionmanager.service.impl;

import com.permissionmanager.entity.PermRole;
import com.permissionmanager.mapper.PermRoleMapper;
import com.permissionmanager.service.PermRoleService;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * permRole业务层
 *
 */
@Service
@RequiredArgsConstructor
public class PermRoleServiceImpl implements PermRoleService {

    private final PermRoleMapper permRoleMapper;



    /**
     * 新增
     */
    @Override
    public void add(PermRole permRole) {
        permRoleMapper.add(permRole);
    }

    /**
     * 修改
     * @param permRole （id）
     */
    @Override
    public void update(PermRole permRole) {
        permRoleMapper.update(permRole);
    }

    @Override
    public void del(Integer id) {
        permRoleMapper.del(id);
    }
}
